package com.zj.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

//ribbon和eureka整合以后，客户端可以直接调用方法,不用关系ip地址跟端口

@SpringBootApplication
@EnableEurekaClient //eureka客户端生效
@EnableFeignClients(basePackages = {"com.zj.springcloud"}) //启动Feign 扫描包
//@ComponentScan("com.zj.springcloud") //扫描包让feign的注解生效  此处会默认扫描springboot主类的包
public class FeignDeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignDeptConsumer_80.class, args);
    }
}
